<template>
	<view class="main">
		<u-navbar
		title="提现"
		title-size="34"
		back-icon-color="#ffffff"
		title-color="#ffffff"
		:border-bottom="false"
		:background="background">
		</u-navbar>
		<view class="content">
			<view class="title">提现金额</view>
			<view class="price">
				<text>¥</text>
				<u-input v-model="price" type="number" placeholder="" clearable/>
			</view>
		</view>
		<button type="default" class="next" @tap="show=true">下一步</button>
		<PayPopup title="提现" btnText="立即充值" :show="show" @close="closePay"></PayPopup>
	</view>
</template>

<script>
	import PayPopup from "@/components/PayPopup.vue"
	export default{
		components:{
			PayPopup
		},
		data(){
			return{
				background: {
					backgroundColor:"#4A90E2"
				},
				price:0,
				show:false,
				
			}
		},
		onLoad() {
			
		},
		onShow() {
			
		},
		onPullDownRefresh() {
		    console.log('refresh');
		    setTimeout(function () {
		        uni.stopPullDownRefresh();
		    }, 1000);
		},
		methods:{
			
			//关闭弹窗
			closePay(e){
				this.show = e
			}
		}
	}
</script>

<style lang="scss" scoped>
	.main{
		min-height: 100vh;
		background-color: #f9f9f9;
		padding: 30rpx;
		.content{
			border-radius: 8rpx;
			background-color: #ffffff;
			padding: 43rpx;
			.title{
				font-size: 32rpx;
				font-weight: 500;
				color: #333333;
				line-height: 45rpx;
			}
			.price{
				display: flex;
				align-items: center;
				font-size: 67rpx;
				color: #AEAEAE;
				margin-top: 60rpx;
				text{
					margin-right: 20rpx;
				}
				/deep/input{
					font-size: 67rpx;
					color: #333333;
				}
			}
		}
		.next{
			height: 100rpx;
			background: #4A90E2;
			border-radius: 50rpx;
			font-size: 34rpx;
			font-weight: 400;
			color: #FFFFFF;
			line-height: 100rpx;
			margin-top: 30rpx;
			&::after{
				border: 0;
			}
		}
		
	}
</style>
